import { requestToData, requestToStatus, requestToExport } from '@/api/commonHttp';

// 进价管理 - 调价通知单 - 列表查询
export const queryPriceAdjustmentListService = (data, loadingFn) => {
  return requestToData({
    url: '/sysback/salepricechangeorder/baseQueryList',
    type: 'post',
    data,
    loadingFn
  });
}

// 进价管理 - 调价通知单 - 列表提交
export const submitPriceAdjustmentService = (data, loadingFn) => {
  return requestToStatus({
    url: `/sysback/salepricechangeorder/submit?recordNo=${data}`,
    type: 'post',
    loadingFn
  });
}

// 进价管理 - 调价通知单 - 导出
export const exportPriceAdjustmentService = (data, loadingFn) => {
  return requestToExport({
    url: '/sysback/salepricechangeorder/exportExcel',
    type: 'post',
    data,
    loadingFn
  });
}
